using System;
using System.Collections.Generic;
using System.Text;

namespace CustomersSuppliersDataLayer
{
    [Serializable]
    public class DataFilter
    {
        private LogicalOperators f_LogicalOperator = LogicalOperators.And;
        public LogicalOperators LogicalOperator
        {
            get { return f_LogicalOperator; }
            set { f_LogicalOperator = value; }
        }
        private string f_Property;
        public string Property
        {
            get { return f_Property; }
            set { f_Property = value; }
        }
        private FilterOperators f_FilterOperator = FilterOperators.Equal;
        public FilterOperators FilterOperator
        {
            get { return f_FilterOperator; }
            set { f_FilterOperator = value; }
        }
        private object f_Value;
        public object Value
        {
            get { return this.f_Value; }
            set { this.f_Value = value; }
        }

        private Type f_CsType;
        public Type CsType
        {
            get { return f_CsType; }
            set { f_CsType = value; }
        }

        public DataFilter(LogicalOperators logicalOperator, string property, FilterOperators filterOperator, object value, Type csType)
        {
            this.f_LogicalOperator = logicalOperator;
            this.f_Property = property;
            this.f_FilterOperator = filterOperator;
            this.f_Value = value;
            this.f_CsType = csType;
        }
    }
}
